var params = {};

$(document).ready(function(){
	
	var prmstr = window.location.search.substr(1);
	var prmarr = prmstr.split ("&");
	

	for ( var i = 0; i < prmarr.length; i++) {
	    var tmparr = prmarr[i].split("=");
	    params[tmparr[0]] = tmparr[1];
	}
	
	
	
	
   
	//
	   $.ajax({
		   url: '/biotika/restful-services/bioequivalencia/obtenerComentarios?nombre='+params.nombre+"&idBioequivalente="+params.idBioequivalente,
		   dataType:"json",
		   error:function(jqXHR, textStatus, errorThrown)
		   {
			   alert('No se encontraron resultados');
		   },
		   success: function(data) {
			  
			   cargarMedicamentos(data);
		   }
		 });

   
 });